import {createStore} from 'redux';
import reducer from './reducer';
import thunk from 'redux-thunk';
import { applyMiddleware } from 'redux';
import createMiddleware from 'redux-saga';
import rootSaga from '../sagas';
let sagaMiddleware = createMiddleware();
let initState = {number:0};
let store = createStore(reducer,initState,applyMiddleware(thunk,sagaMiddleware));
sagaMiddleware.run(rootSaga);
export default store;
